<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>拾惠商城登录</title>
    <link rel="icon" href="//www.jd.com/favicon.ico"/>
    <link type="text/css" rel="stylesheet"
          href="//misc.360buyimg.com/user/passport/1.0.0/??/widget/base/base.css,widget/common-2016-1124/common-2016-1124.css,/widget/login-form-2018-0827/login-form-2018-0827.css,/widget/login-banner/login-banner.css,/widget/safe-step/safe-step.css,/widget/foreign-number-layer-170524/foreign-number-layer-170524.css"
          source="widget"/>
    <link type="text/css" rel="stylesheet" href="//misc.360buyimg.com/user/passport/1.0.0/css/tinyscrollbar-170524.css">
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <link rel="stylesheet" href="/css/bootstrap-table.min.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=gbk">
    <link type="text/css" rel="stylesheet" href="//misc.360buyimg.com/jdf/1.0.0/unit/??ui-base/1.0.0/ui-base.css">
    <link type="text/css" rel="stylesheet" href="//misc.360buyimg.com/user/reg/3.0.0/css/tinyscrollbar-170524.css">
    <script type="text/javascript" src="/js/jquery-easyui-1.4.1/jquery.min.js"></script>
    <script type="text/javascript" src="/js/jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/js/jquery-easyui-1.4.1/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/js/jquery-easyui-1.4.1/insdep.extend.min.js"></script>
    <script type="text/javascript" src="/js/common.js"></script>
    <style>
        #title{
            text-align: center;
        }
        #title1{
            text-align: center;
            font-size: 15px
        }
    </style>
</head>
<body>
<div class="w">
    <div id="logo">
        <a href="//www.jd.com/" clstag="pageclick|keycount|20150112ABD|45">
            <img src="//misc.360buyimg.com/lib/img/e/logo-201305-b.png" alt="拾惠" width="170" height="60">
        </a>
        <b></b>
    </div>
    <a href="//surveys.jd.com/index.php?r=survey/index/sid/568245/lang/zh-Hans" target="_blank"  class="q-link"><b></b>登录页面，调查问卷</a>
</div>
<div class="col-md-12">
    <hr>
</div>
<div class="col-md-12" style="padding-top: 100px">
    <div class="col-md-4">
    </div>
    <div class="col-md-4" id="title">
        <span  style="font-size: 30px;color: #9f1807 ">账户登录</span>
        <div style="padding: 80px 100px 10px;">
        <form class="bs-example bs-example-form" role="form" action="/user/login" method="post">
            <div class="input-group">
                <span class="input-group-addon" id="sizing-addon1" >用&ensp;户&ensp;名</span>
                <input type="text" class="form-control" maxlength="20" placeholder="您的账户名和登录名" id="username" >
            </div>
            <br>
            <br>
            <br>
            <div class="input-group">
                <span class="input-group-addon" id="sizing-addon2" >密&emsp;&emsp;码</span>
                <input type="password" class="form-control" maxlength="20" placeholder="密码" id="password" >
            </div>
            <br>
            <br>
            <br>
            <div>
                <button  id="login_btn" type="button" style="width: 100%;height: 40px;background-color: #a94442;color: white"  >登&emsp;&emsp;录</button>
            </div>
        </form>
            <br>
            <br>
            <div class="pull-right" >
            <a href="/user/register.html"  target="_blank"  style="color: #9f1807;font-size: 15px"> —> 立即注册</a>
            </div>
        </div>
    </div>
    <div class="col-md-4"></div>
</div>
<div  class="footer w"  style="padding-top: 600px" id="title1">
    <div class="links" >
        <hr>
        <a rel="nofollow" target="_blank" href="//www.jd.com/intro/about.aspx"> 关于我们</a>|
        <a rel="nofollow" target="_blank" href="//www.jd.com/contact/">联系我们</a>|
        <a rel="nofollow" target="_blank" href="//zhaopin.jd.com/">人才招聘</a>|
        <a rel="nofollow" target="_blank" href="//www.jd.com/contact/joinin.aspx">商家入驻</a>|
        <a rel="no  follow" target="_blank" href="//www.jd.com/intro/service.aspx">广告服务</a>|
        <a rel="nofollow" target="_blank" href="//app.jd.com/">手机京东</a>|
        <a target="_blank" href="//club.jd.com/links.aspx">友情链接</a>|
        <a target="_blank" href="//media.jd.com">销售联盟</a>|
        <a href="//club.jd.com/" target="_blank">京东社区</a>|
        <a href="//gongyi.jd.com" target="_blank">京东公益</a>|
        <a target="_blank" href="//en.jd.com/" clstag="pageclick|keycount|20150112ABD|9">English Site</a>
    </div>
    <div class="copyright">
        Copyright&copy;2004-2018&nbsp;&nbsp;京东JD.com&nbsp;版权所有
    </div>
</div>
</body>
<script>
    $(function () {
        $("#login_btn").click(function () {
            var username = $("#username").val();
            var password = $("#password").val();
            $.ajax({
                url:"/user/showLogin",
                type:"post",
                data:{
                    "username":username,
                    "password":password
                },
                dataType:"json",
                success:function (rs) {
                    console.log(rs)
                    if (rs.status == 200){
                        window.location.href="http://www.shihui.com";
                    }
                }

            })
        })
    })

</script>
</html>